package org.pan.domain.db.admin;

/**
 * 登录用户的状态，禁用时，该用户将不能执行任何操作
 * Created by panmingzhi on 2016/2/11 0011.
 */
public enum SystemAccountState {
    禁用,启用;

    public static SystemAccountState parse(int index){
        switch (index) {
            case 0:
                return 禁用;
            case 1:
                return 启用;
            default:
                throw new RuntimeException("用户状态解析异常");
        }
    }
}
